]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Reword a boolean condition
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 4 Dec 2013 16:22:48 +0000 (11:22 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 4 Dec 2013 16:22:55 +0000 (11:22 -0500)
Just so it's a bit easier to understand...

js/ui/messageTray.js

index e93a89c8c7ba3ec75ca6802cbe2d06e711618018..aa93640a6d3c8268b64fb6b9a11a8c53ca50441d 100644 (file)
@@ -2382,7 +2382,7 @@ const MessageTray = new Lang.Class({
         } else if (this._notificationState == State.SHOWN) {
             let expired = (this._userActiveWhileNotificationShown &&
                            this._notificationTimeoutId == 0 &&
-                           !(this._notification.urgency == Urgency.CRITICAL) &&
+                           this._notification.urgency != Urgency.CRITICAL &&
                            !this._notification.focused &&
                            !this._pointerInNotification);
             let mustClose = (this._notificationRemoved || !hasNotifications || expired || this._traySummoned);